package com.ideal.manage.esms.bean.project;

import com.ideal.manage.esms.bean.sys.User;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * Created by 83730 on 2018/3/30.
 */
@Entity
@Table(name = "SYS_EQUIPMENT_INFO")
public class EquipmentInfo implements Serializable {

    @Id
    private String id;
    private String code;
    private String name;
    private Integer objName;
    private Integer source;
    private String status ;
    private String statusExpression;
    private Date createTime;
    private Date updateTime;

    @ManyToOne
    @JoinColumn(name="CREATE_USER")
    private User createUser;
    private Integer isValid;

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatusExpression() {
        return statusExpression;
    }

    public void setStatusExpression(String statusExpression) {
        this.statusExpression = statusExpression;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getObjName() {
        return objName;
    }

    public void setObjName(Integer objName) {
        this.objName = objName;
    }

    public Integer getSource() {
        return source;
    }

    public void setSource(Integer source) {
        this.source = source;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public User getCreateUser() {
        return createUser;
    }

    public void setCreateUser(User createUser) {
        this.createUser = createUser;
    }

    public Integer getIsValid() {
        return isValid;
    }

    public void setIsValid(Integer isValid) {
        this.isValid = isValid;
    }
}
